package org.nf.ssm.dao;

import org.apache.ibatis.annotations.Param;
import org.nf.ssm.domain.Borrow;

import java.util.List;

/**
 * @author zhu
 * @date 2024-10-14
 */
public interface BorrowDao {

    List<Borrow> getAllBorrow(@Param("pageNum") Integer pageNum,
                              @Param("pageSize") Integer pageSize,
                              @Param("bookName") String bookName,
                              @Param("borrowId") String borrowId,
                              @Param("borrowType") String borrowType,
                              @Param("typeId") Integer typeId);

    void addBorrow(Borrow borrow);

    void updateBorrow(Borrow borrow);

    void deleteBorrow(Integer index);
}
